#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ======================================#
# @Author   : duanqizhong
# @time     : 2020/6/8 0:12
# @file     : settings.py
# @Software : PyCharm
# ======================================#

import os
import sys

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

SECRET_KEY = "qzpmfj00544"

DB_CONNECTOR = {
    "host": "192.168.3.23",
    "port": 3306,
    "user": "yuzhen",
    "passwd": "yuzhen",
    "db": "env"
}

# SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://yuzhen:yuzhen@192.168.137.12:3306/flow'
SUFFIX_DOMAIN = "nwjx.com"

REDIS_HOST = "192.168.3.23"

REDIS_PORT = 6379
RDDIS_DB = 0
REDIS_EXPIRE = 900
REDIS_FLUSHDB_SECRET = "evileye"
REDIS_CACHE_TABLES = ["app", "business", "constants", "db_instance", "env", "hosts", "operator_log", "requirements",
                      "user", "vars"]

# 返回中文不乱码
JSON_AS_ASCII = False
